Skip to content

feat(homepage): 恢复首页并加入 dashboard 入口和实时进度条 - #22

Merged
surenny merged 4 commits into
surenny:mainfrom
Camille1024:feat/homepage-fix
May 7, 2026
Merged

feat(homepage): 恢复首页并加入 dashboard 入口和实时进度条#22
surenny merged 4 commits into
surenny:mainfrom
Camille1024:feat/homepage-fix

Conversation

@Camille1024

Copy link
Copy Markdown
Collaborator

问题

homepage/ 目录只在 feat/unify-annotation-system 分支上,合并 PR #14 时没有带进 main,导致 kip.opensii.ai/ 返回 404。

改动

恢复 homepage/index.html,在原有基础上做了两处改进:

1. 新增 Dashboard 入口

  • 链接到 /dashboard/,蓝色边框区分于其他条目

2. 实时进度条

  • 页面加载时从 /dashboard/api/state/health 拉取节点数据
  • 按 proved / aligned / bound / nl_reviewed / drafted 五个阶段分色显示进度条
  • API 不可达时静默降级,不影响页面其余内容

验证

https://kip.opensii.ai/ 现已恢复正常,进度条数据实时显示。

chorewer and others added 4 commits April 30, 2026 18:01
Add POST /api/ingest endpoint and run.sh upload hook so agents running
on any machine can stream their JSONL events to the deployed dashboard
in real time.

- ui/server/src/routes/ingest.ts: new endpoint. Validates Bearer token
  (KIP_INGEST_TOKEN env var, optional), checks agent/runId are safe path
  segments, writes events to agents/<agent>/logs/<runId>/absorber.jsonl
  and maintains meta.json (creates on first event, updates completedAt
  and status on session_end). No extra WebSocket wiring needed — the
  existing fs.watch in logs.ts detects the appended bytes and pushes
  them to connected clients automatically.
- ui/server/src/index.ts: register ingest route.
- agents/blueprint-absorber/run.sh: add ingest() inside the inline
  Python log-parser. Reads KIP_INGEST_URL / KIP_INGEST_TOKEN from env;
  if KIP_INGEST_URL is unset the function is a no-op so local-only mode
  is unchanged. Fire-and-forget with 3s timeout — failures are silently
  ignored and never block the agent.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…s bar

Restores the missing homepage/ (lost when main diverged from
feat/unify-annotation-system) and adds two improvements:
- Dashboard entry point in the link list
- Live formalization progress bar fetched from /dashboard/api/state/health
  (proved / aligned / bound / nl_reviewed / drafted segments, falls back
  silently if the API is unreachable)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@surenny
surenny merged commit 451e8ff into surenny:main May 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants